<template>
  <div class="app-header">
    <div class="logo-container">
      <img src="../assets/images/components/app-header/logo.png" width="100%" alt="hlw" class="logo">
    </div>
    <div class="right-container">
      <div class="title-container">
        <p class="title">{{title}}</p>
        <p class="title-desc">下载并打开进入{{title}}</p>
      </div>
      <div>
        <img src="../assets/images/components/app-header/btn_shadow.png" alt="打开App" class="btn-img">
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'app-header',

  props: {
    title: String
  }
};
</script>

<style lang="scss" scoped>
.app-header {
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 140px;

  .logo-container {
    margin-right: 20px;
    width: 87px;
    height: 87px;
  }

  .right-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1 1 auto;
  }

  .title-container {

    .title {
      margin-bottom: 6px;
      height: 40px;
      line-height: 40px;
      font-size: 30px;
      color: #8974AC;
    }

    .title-desc {
      height: 31px;
      line-height: 31px;
      font-size: 24px;
      color: rgba(137, 116, 172, 0.6);
    }
  }

  .btn-img {
    margin-bottom: -22px;
  }
}
</style>
